package com.craney.aboutXML
{
	public class SecondXML
	{
		public function SecondXML()
		{
			var newXml:XML = 
				<Lover>
					<Mary m-l="this">
						WangChenyao
					</Mary>
					<Mary name="y">
 						hzhaoxxxx
 						<school>xidian</school>
					</Mary>
					<Mary name="x">
 						hzhao
 						<school>xidian</school>
					</Mary>
 					<Rally>
						<school>xidian</school>
						QiaoLu
					</Rally>
					<Heather>
						<Heather>GuanHe</Heather>
						GuanHeLoveHeHe
					</Heather> 
				</Lover>;
			
//			trace(newXml.Mary.@['m-l']);
//			trace(newXml.*.(Heather=="GuanHe"));
//			trace(newXml.Mary.(hasOwnProperty("school") && @name=='x').school);
			newXml.Rally.setName("Fance");
			trace(newXml.children()[3]);

		}

	}
}